package com.wash.shoes.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wash.shoes.entity.CustomerPo;

/**
 * <p>
 * 客户 服务类
 * </p>
 *
 * @author ljg
 * @since 2024-08-28
 */
public interface CustomerService extends IService<CustomerPo> {

    /**
     * @author lijianguo
     * @Date 28/08/2024 10:55
     * 客户列表
     **/
    Page<CustomerPo> pageList(CustomerPo customerPo);

    /**
     * @author lijianguo
     * @Date 22/09/2024
     * 请输入方法的简介
     **/
    CustomerPo getByPhone(String receiverMobile);


    /**
     * @author lijianguo
     * @Date 23/10/2024
     * 更新用户的订单数量
     **/
    Integer updateOrderNum();

    /**
     * @author lijianguo
     * @Date 29/11/2024
     * 获取 openId
     **/
    CustomerPo getByOpenId(String openId);

    /**
     * 邀请码查询
     *
     * @param code 邀请码
     * @return 用户
     */
    CustomerPo getByInviteCode(String code);

    /**
     * 抖音用户信息
     * @param dyOpenId
     * @return
     */
    CustomerPo getByDyOpenId(String dyOpenId);
}
